<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <title>学园 - 我的消息</title>
    <link rel="stylesheet" type="text/css" href="../web_terminal/trunk/assets/css/reset.css">
    <link rel="stylesheet" type="text/css" href="../web_terminal/trunk/assets/css/base.css">
    <link rel="stylesheet" type="text/css" href="../web_terminal/trunk/assets/css/layout.css">
    <link rel="stylesheet" type="text/css" href="../web_terminal/trunk/assets/css/mycircle.css">
    <link rel="stylesheet" type="text/css" href="../web_terminal/trunk/assets/css/mycenter.css">
    <link rel="stylesheet" type="text/css" href="../web_terminal/trunk/assets/css/circle_content.css">
    <link rel="stylesheet" type="text/css" href="../web_terminal/trunk/assets/css/jquery.fancybox.css">
</head>

<body>
    <div class="navigation">
        <div class="xywrap topinner">
            <a href="#" class="top-link-logo" id="top-link-logo">学园</a>
            <div class="topsearch">
                <form action="" class="top-search-form" method="post">
                    <input type="text" class="top-search-input" id="" name="" autocomplete="off" value="" placeholder="搜索感兴趣的话题" /><i class="icon-search iconfont">&#xe674;</i>
                </form>
            </div>
            <div class="navcontent" id="">
                <ul>
                    <li><a href="#" class="topnavx">消息</a></li>
                    <li><a href="#" class="topnavx">圈子</a></li>
                    <li><a href="#" class="topnavx">动态</a></li>
                </ul>
            </div>
            <div class="top-nav-selfinfo">
                <a href="#" class="top-nav-userinfo " id="" role="button">
                    <span class="name">Rose</span>
                    <img class="avatar">
                </a>
                <ul class="top-nav-dropdown" id="">
                    <li>
                        <a href="#" id="">个人主页</a>
                    </li>
                    <li>
                        <a href="#" id="">设置</a>
                    </li>
                    <li>
                        <a href="#" id="">退出</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div class="wrapper">
        <div class="main-content">
            <div class="main-content-inner">
                <div class="home-list">
                    <div class="home-list-title">
                        <button class="btn-label active">通知</button>
                        <button class="btn-label">@我</button>
                        <button class="btn-label">私信</button>
                    </div>
                    <div class="home-list-content clearfix">
                        <div id="informMore" class="navmessage-content-body">
                            <div id="inform-item" class="content-body-item" style="padding:10px 5px;cursor: pointer;">
                                <span class="name" style="color: #0072dc;">许哲</span>
                                <span>@了你</span>
                            </div>
                            <div class="content-body-item" style="padding:10px 5px;">
                                <span class="name" style="color: #0072dc;">许哲</span>
                                <span>@了你</span>
                            </div>
                            <div class="content-body-item" style="padding:10px 5px;">
                                <span class="name" style="color: #0072dc;">许哲</span>
                                <span>评论了你的话题</span>
                                <span class="topicname" style="color: #0072dc;">高数怎么学</span>
                            </div>
                            <div class="content-body-item" style="padding:10px 5px;">
                                <span class="name" style="color: #0072dc;">许哲</span>
                                <span>回复了你的评论</span>
                                <span class="topicname" style="color: #0072dc;">高数怎么学</span>
                            </div>
                            <div class="content-body-item" style="padding:10px 5px;">
                                <span class="name" style="color: #0072dc;">许哲</span>
                                <span>赞了你的评论</span>
                                <span class="topicname" style="color: #0072dc;">高数应该这么学</span>
                            </div>
                            <a href="javascript:" class="btn-white btn-more">查看更多</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="footer">
        <div class="foot-content">
            <span class="companyname">上海久炽信息科技有限公司-技术支持</span>
        </div>
    </div>
    <script type="text/javascript" src="../web_terminal/trunk/assets/js/jquery-1.10.1.min.js"></script>
    <script type="text/javascript" src="../web_terminal/trunk/assets/js/jquery.fancybox.pack.js"></script>
    <script type="text/javascript" src="../web_terminal/trunk/assets/js/jquery.form.js"></script>
    <script>
    $(document).ready(function() {
        $('#informMore').more({
            'address': '<?php echo site_url('')?>',
            'template': '#inform-item',
            'trigger': '.btn-more',
        });
        $('.rep-concern').click(function() {
            var btnStaus = $(this).text();
            if (btnStaus == "关注圈子") {
                $(this).toggleClass("active").text("不再关注");
            } else {
                $(this).toggleClass("active").text("关注圈子");
            }

        })
        $('#btn-createCircle').click(function() {
            $.fancybox({
                href: "#box-createCircle",
                padding: 5,
            });
        })
        $('#submit-create').click(function() {
                $('form').ajaxSubmit({
                        type: 'post',
                        dataType: 'json',
                        beforeSerialize: function() {
                            /* body... */
                        }
                        beforeSubmit: function() {
                            if ($('#topic-create-title input').val() == '') {
                                $('#box-createCircle').after('<span id="create-error" style="color:red;">圈子名称不能为空</span>');
                                return false;
                            }
                            if ($('#circle-name-create option').val() == '') {
                                ('#box-createCircle').after('<span id="create-error" style="color:red;">圈子分类不能为空</span>');
                                return false;
                            }
                            if ($('#content-topic-create textarea').val() == '') {
                                ('#box-createCircle').after('<span id="create-error" style="color:red;">圈子描述不能为空</span>');
                                return false;
                            }
                        }
                    }
                    success: function(data) {
                        if (data.StatusCode == 200) {
                            $.fancybox({
                                href: "#createSuccess"
                            });
                        } else {
                            $.fancybox({
                                href: "#createFalse"
                            });
                        }
                    }
                });
        });
    });
    </script>
</body>

</html>
